package controller

import (
	"context"
	"xr-game-server/core/httpserver"
	"xr-game-server/dto/resdto"
	"xr-game-server/module/item"
)

type Res struct {
}

func initRes() {
	httpserver.RegAPI("/res", new(Res))
}

func (this *Res) PushRes(ctx context.Context, req *resdto.PushResReq) (res *resdto.PushResResp, err error) {
	item.Consume(httpserver.GetAuthId(ctx), req.Data, true)
	return nil, err
}
